package com.atguigu.pojo;

import java.util.Objects;

public class NginxServiceConfigPhp {
    public String id;
    public String serverId;
    public String serviceId;
    public String domain;
    public String port;
    public String workDirectory;
    public String use;
    public String projectId;
    public String projectModuleId;

    public NginxServiceConfigPhp() {
    }

    public NginxServiceConfigPhp(String id, String serverId, String serviceId, String domain, String port, String workDirectory, String use, String projectId, String projectModuleId) {
        this.id = id;
        this.serverId = serverId;
        this.serviceId = serviceId;
        this.domain = domain;
        this.port = port;
        this.workDirectory = workDirectory;
        this.use = use;
        this.projectId = projectId;
        this.projectModuleId = projectModuleId;
    }

    @Override
    public String toString() {
        return "NginxServiceConfigPhp{" +
                "id='" + id + '\'' +
                ", serverId='" + serverId + '\'' +
                ", serviceId='" + serviceId + '\'' +
                ", domain='" + domain + '\'' +
                ", port='" + port + '\'' +
                ", workDirectory='" + workDirectory + '\'' +
                ", use='" + use + '\'' +
                ", projectId='" + projectId + '\'' +
                ", projectModuleId='" + projectModuleId + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof NginxServiceConfigPhp)) return false;
        NginxServiceConfigPhp that = (NginxServiceConfigPhp) o;
        return id.equals(that.id) && serverId.equals(that.serverId) && serviceId.equals(that.serviceId) && domain.equals(that.domain) && port.equals(that.port) && workDirectory.equals(that.workDirectory) && use.equals(that.use) && projectId.equals(that.projectId) && projectModuleId.equals(that.projectModuleId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, serverId, serviceId, domain, port, workDirectory, use, projectId, projectModuleId);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getServerId() {
        return serverId;
    }

    public void setServerId(String serverId) {
        this.serverId = serverId;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getWorkDirectory() {
        return workDirectory;
    }

    public void setWorkDirectory(String workDirectory) {
        this.workDirectory = workDirectory;
    }

    public String getUse() {
        return use;
    }

    public void setUse(String use) {
        this.use = use;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectModuleId() {
        return projectModuleId;
    }

    public void setProjectModuleId(String projectModuleId) {
        this.projectModuleId = projectModuleId;
    }
}
